<template>
  <div>
      <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
      <van-swipe-item v-for="item in banner" :key="item.id">
        <img class="banner_img" :src="$pre + item.img" alt />
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
export default {
props:["banner"]
}
</script>

<style scoped>
.van-swipe-item {
  height: 3.5rem;
}
.van-swipe-item img {
  width: 100%;
  height: 100%;
}
</style>